package cn.itsource.exam.mapper;

import cn.itsource.exam.domain.Exam;
import cn.itsource.exam.query.ExamQuery;
import cn.itsource.exam.util.PageList;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
public interface ExamMapper extends BaseMapper<Exam> {
    public List<Exam> selectExamList(ExamQuery query);
    public int countExamList(ExamQuery query);
    public List classList();
    //根据答辩编号查询答辩编号
    public String selectExamNo(String id);
    public List selectStudentByClassIds(@Param("arr")JSONArray arr);
    //保存分配的答辩数据
    public void saveExam(Map map);
    //答辩确认修改状态
    void updateExamStateById(Long id);
}
